home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / include / primitiv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-22  |  1.8 KB  |  51 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d (not only polygonal) solid modeller.             *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * General, visible to others, definitions of primitiv module.             *
  7. *****************************************************************************/
  8.  
  9. #ifndef    PRIMITIV_H
  10. #define    PRIMITIV_H
  11.  
  12. #define    MIN_RESOLUTION 4
  13.  
  14. #if defined(__cplusplus) || defined(c_plusplus)
  15. extern "C" {
  16. #endif
  17.  
  18. IPObjectStruct *PrimGenBOXObject(VectorType Pt,
  19.                  RealType WidthX,
  20.                  RealType WidthY,
  21.                  RealType WidthZ);
  22. IPObjectStruct *PrimGenGBOXObject(VectorType Pt,
  23.                   VectorType Dir1,
  24.                   VectorType Dir2,
  25.                   VectorType Dir3);
  26. IPObjectStruct *PrimGenCONEObject(VectorType Pt, VectorType Dir, RealType R);
  27. IPObjectStruct *PrimGenCONE2Object(VectorType Pt,
  28.                    VectorType Dir,
  29.                    RealType R1,
  30.                    RealType R2);
  31. IPObjectStruct *PrimGenCYLINObject(VectorType Pt, VectorType Dir, RealType R);
  32. IPObjectStruct *PrimGenSPHEREObject(VectorType Center, RealType R);
  33. IPObjectStruct *PrimGenTORUSObject(VectorType Center,
  34.                    VectorType Normal,
  35.                    RealType Rmajor,
  36.                    RealType Rminor);
  37. IPObjectStruct *PrimGenPOLYDISKObject(VectorType N, VectorType T, RealType R);
  38. IPObjectStruct *PrimGenPOLYGONObject(IPObjectStruct *PObjList, int IsPolyline);
  39. IPObjectStruct *PrimGenObjectFromPolyList(IPObjectStruct *PObjList);
  40. IPObjectStruct *PrimGenCROSSECObject(IPObjectStruct *PObj);
  41. IPObjectStruct *PrimGenSURFREVObject(IPObjectStruct *Cross);
  42. IPObjectStruct *PrimGenEXTRUDEObject(IPObjectStruct *Cross, VectorType Dir);
  43.  
  44. void PrimSetResolution(int Resolution);
  45.  
  46. #if defined(__cplusplus) || defined(c_plusplus)
  47. }
  48. #endif
  49.  
  50. #endif    /* PRIMITIV_H */
  51.